package com.google.jessewilson.codesearch.util;

/**
 * @author jessewilson
 */
public class Preconditions {

  public static void checkState(boolean condition) {
    if(!condition) throw new IllegalStateException();
  }

  public static <T> T checkNotNull(T argument) {
    if(argument == null) throw new IllegalStateException();
    return argument;
  }
}
